﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CoolERP_Entities;
using CoolERP_DAL;

namespace CoolERP_BLL
{
    public class UserInDepartmentsBLL : BaseBLL<UserInDepartments>
    {       
        public UserInDepartmentsBLL() { }

        public List<UserInDepartments> GetUsersByDepartmentId(Guid Did)
        {
            IUserInDepartmentsDAL _dal = new UserInDepartmentsDAL(context);
            return _dal.GetUsersByDepartmentId(Did);
        }

        public List<UserInDepartments> GetUsersByDepartmentId(Func<UserInDepartments, bool> exp, string orderExpr, int? pageIndex, int pageSize, out int totalCount)
        {
            IUserInDepartmentsDAL _dal = new UserInDepartmentsDAL(context);
            return _dal.GetUsersByDepartmentId(exp, orderExpr, pageIndex, pageSize, out  totalCount);
        }
    }
}
